<div class="box_newpro">
    <div id="newPrd">
        <?php if ($products) { ?> 
            <ul>
                <?php $i = 0; ?>
                <?php foreach ($products as $product) { ?>
                    <?php $class = $i == 0 ? 'first' : ''; ?>
                    <li class="prd-item <?php echo $class; ?>">
                        <a class="prd-thumb" href="<?php echo str_replace('&', '&amp;', $product['href']); ?>" title="<?php echo $product['name']; ?>">
                            <img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" />
                        </a>
                        <a class="prd-name" href=""><?php echo $product['shortname']; ?></a>                        
                        <?php if($product['discount']){ ?>
                            <div class="prd-price">
                                <span class="currency">DKK: </span>
                                <span class="price"><?php echo str_replace('DKK', '', $product['discount']); ?></span>&nbsp;&nbsp;
                            
                                <span class="cat_style3"><span class="cat_style2_discount">&nbsp;<?php echo $item['price']; ?></span>
                                </span>
                            </div>
                        <?php }else{ ?>
                            <div class="prd-price">
                                <span class="currency">DKK: </span>
                                <span class="price"><?php echo str_replace('DKK', '', $product['price']); ?></span>
                            </div>                        
                        <?php } ?>
                    </li> 
                    <?php $i++; ?>
                <?php } ?>    
            </ul>
        <?php } ?> 
    </div>
    <div class="cl"></div> 
</div>